/**
 * Copyright &copy; 2016-2017 <a href="https://www.lczyfz.com">联创智云</a> All rights reserved.
 */
package com.lczyfz.campusinfo.modules.campusinfoeducation.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lczyfz.campusinfo.common.persistence.Page;
import com.lczyfz.campusinfo.common.service.CrudService;
import com.lczyfz.campusinfo.modules.campusinfoeducation.entity.CampusinfoCountry;
import com.lczyfz.campusinfo.modules.campusinfoeducation.dao.CampusinfoCountryDao;

/**
 * 国家管理Service
 *
 * @author yt
 * @version 2017-10-20
 */
@Service
@Transactional(readOnly = true)
public class CampusinfoCountryService extends CrudService<CampusinfoCountryDao, CampusinfoCountry> {
    @Autowired
    private CampusinfoCountryDao campusinfoCountryDao;
    public CampusinfoCountry get(String id) {
        return super.get(id);
    }

    public List<CampusinfoCountry> findList(CampusinfoCountry campusinfoCountry) {
        return super.findList(campusinfoCountry);
    }

    public Page<CampusinfoCountry> findPage(Page<CampusinfoCountry> page, CampusinfoCountry campusinfoCountry) {
        return super.findPage(page, campusinfoCountry);
    }
    public CampusinfoCountry getByName(CampusinfoCountry  campusinfoCountry){
        return  campusinfoCountryDao.getByName(campusinfoCountry);
    };
    @Transactional(readOnly = false)
    public void save(CampusinfoCountry campusinfoCountry) {
        super.save(campusinfoCountry);
    }

    @Transactional(readOnly = false)
    public void delete(CampusinfoCountry campusinfoCountry) {
        super.delete(campusinfoCountry);
    }

}